#ifndef  SERVER_H__
#define SERVER_H__
#define DEFAULT_MEDIADIR  "/home/jemee/C_project/QT/IPV4_server/media"
#define DEFAULT_IF "ens33"


#include <stdlib.h>
#include <stdio.h>
#include "proto.h"
#include "server.h"
#include <unistd.h>
#include <getopt.h>
#include <sys/types.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <syslog.h>
#include <errno.h>
#include <string.h>
#include <signal.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/ip.h> /* superset of previous */
#include <arpa/inet.h>
#include"mlib.h"
#include "list.h"
#include"channel.h"
#include<pthread.h>

enum
{
    RUN_DAEMON = 1,
    RUN_FOREGROUND
};
struct server_conf_st
{
    char *rcvport;
    char *mgroup; // multicast group
    char  *media_dir;
    char runmode;
    char *ifname;
};
extern struct server_conf_st server_conf;
extern int sfd;
extern struct sockaddr_in sndaddr;



#endif // ! SERVER_H__
